﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace QuanLyThuVien
{
    public partial class frmHuongDanSuDung : Form
    {
        public frmHuongDanSuDung()
        {
            InitializeComponent();
        }

        private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Node.Text == "Quản Lý Độc Giả")
            {
                String u1 = Path.GetDirectoryName(Application.ExecutablePath);
                Uri u2 = new Uri(u1 + @"/QuanLyThuVien/QuanLyDocGia.htm");
                webBrowser1.Url = u2;
            }
            if (e.Node.Text == "Quản Lý Mượn Trả")
            {
                String u1 = Path.GetDirectoryName(Application.ExecutablePath);
                Uri u2 = new Uri(u1 + @"/QuanLyThuVien/QuanLyMuonTra.htm");
                webBrowser1.Url = u2;
            }
            if (e.Node.Text == "Quản Lý Sách")
            {
                String u1 = Path.GetDirectoryName(Application.ExecutablePath);
                Uri u2 = new Uri(u1 + @"/QuanLyThuVien/QuanLySach.htm");
                webBrowser1.Url = u2;
            }
        }

        private void frmHuongDanSuDung_Load(object sender, EventArgs e)
        {
            String u1 = Path.GetDirectoryName(Application.ExecutablePath);
            Uri u2 = new Uri(u1 + @"/QuanLyThuVien/QuanLyMuonTra.htm");
            webBrowser1.Url = u2;
        }
    }
}
